<h2 class="contentTitle">编辑系统用户</h2>

<div class="pageContent">
	
	<form method="post" action="/admin/system/edit?id=<?php echo $this->userInfo['uid']; ?>" class="pageForm required-validate" onsubmit="return validateCallback(this)">
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>用户类型：</dt>
				<dd>
					<select name="user_type" class="required combox">
						<option value="">请选择</option>
						<option value="1" <?php if($this->userInfo['user_type'] == 1 ){ echo 'selected'; } ?>>管理员</option>
						<option value="0" <?php if($this->userInfo['user_type'] == 0 ){ echo 'selected'; } ?>>普通用户</option>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>登录名：</dt>
				<dd>
					<input type="text" name="username" value="<?php echo $this->userInfo['username']; ?>" maxlength="20" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input id="w_validation_pwd" type="password" name="password" minlength="6" maxlength="20" alt="密码必须是字母、数字、下划线 6-20位"/>
				</dd>
			</dl>
			<dl>
				<dt>确认密码：</dt>
				<dd>
					<input type="password" name="repassword"  equalto="#w_validation_pwd"/>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>邮箱：</dt>
				<dd>
					<input type="text" name="email" value="<?php echo $this->userInfo['email']; ?>" class="required email"/>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>用户状态：</dt>
				<dd>
					<select name="status" class="required combox">
						<option value="1" <?php if($this->userInfo['status'] == 1 ){ echo 'selected'; } ?>>可用</option>
						<option value="0" <?php if($this->userInfo['status'] == 0 ){ echo 'selected'; } ?>>禁用</option>
					</select>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

